package org.RSG.Resources;

import java.awt.*;

import javax.swing.ImageIcon;

public class Icons
{
	public static Image icons[];
	public Icons()
	{
		if(icons == null)
		{
			icons = new Image[50];
		}
	}
	
	public void LoadIcon(String icon, int index)
	{
		try
		{
			icons[index] = new ImageIcon(ClassLoader.getSystemResource(icon)).getImage();
		} catch(Throwable t) {
			System.err.println("Unable to load image");
		}
	}
	
	public Image GetIcon(int index)
	{
		return icons[index];
	}
}